home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_pyr_snakefix.cog < prev    next >
Text File  |  1999-11-15  |  765b  |  44 lines

  1. # Jones 3D Cog Script
  2. #
  3. # pyr_snakefix.cog
  4. #
  5. # Compensate for fat bullets at break-in to pyramid 1
  6. #
  7. # [RKD]
  8. #
  9. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  10. # ==============================================================================
  11.  
  12. symbols
  13. message    entered
  14.  
  15. surface    targetoff
  16.  
  17. sector    targeton
  18.  
  19. thing    snake1    nolink
  20. thing    snake2    nolink
  21. end
  22.  
  23. code
  24. entered:
  25. # ---> TargetOn/TargetOff surfaces
  26.  
  27.     if (GetSenderRef() == targeton)
  28.     {
  29.         # turn snake targetting on
  30.         ClearActorFlags(snake1, 0x100000);
  31.         ClearActorFlags(snake2, 0x100000);
  32.     }
  33.     else if (GetSenderRef() == targetoff)
  34.     {
  35.         # turn snake targetting off
  36.         SetActorFlags(snake1, 0x100000);
  37.         SetActorFlags(snake2, 0x100000);
  38.     }
  39.         
  40.     return;
  41.  
  42. end
  43.  
  44.